ReportQuestion.render   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 25
Code Lines 22

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 22
dl 0
loc 25
rs 9.352
c 0
b 0
f 0
cc 1
1
import React from 'react';
2
3
class ReportQuestion extends React.Component {
4
    render() {
5
        return (
6
            <div className="question_input_container">
7
                <label >
8
                    Question
9
                    <textarea
10
                        id={this.props.index}
11
                        name={"question"}
12
                        type="textarea"
13
                        onChange={this.props.triggerQuestion}
14
                        defaultValue={this.props.question}
15
16
                    />
17
                </label>
18
                <label>
19
                    Answer
20
                    <textarea
21
                        id={this.props.index}
22
                        name={"answer"}
23
                        type="textarea"
24
                        onChange={this.props.triggerAnswer}
25
                        defaultValue={this.props.answer}
26
                    />
27
                </label>
28
            </div>
29
30
        )
31
    }
32
}
33
34
35
export default ReportQuestion;